3.1.23 \(\int \frac {a+b \arctan (c x^2)}{d+e x} \, dx\) [23]

3.1.23.1 Optimal result
3.1.23.2 Mathematica [C] (verified)
3.1.23.3 Rubi [A] (verified)
3.1.23.4 Maple [C] (verified)
3.1.23.5 Fricas [F]
3.1.23.6 Sympy [F(-1)]
3.1.23.7 Maxima [F]
3.1.23.8 Giac [F]
3.1.23.9 Mupad [F(-1)]

3.1.23.1 Optimal result

Integrand size = 18, antiderivative size = 501 \[ \int \frac {a+b \arctan \left (c x^2\right )}{d+e x} \, dx=\frac {\left (a+b \arctan \left (c x^2\right )\right ) \log (d+e x)}{e}+\frac {b c \log \left (\frac {e \left (1-\sqrt [4]{-c^2} x\right )}{\sqrt [4]{-c^2} d+e}\right ) \log (d+e x)}{2 \sqrt {-c^2} e}+\frac {b c \log \left (-\frac {e \left (1+\sqrt [4]{-c^2} x\right )}{\sqrt [4]{-c^2} d-e}\right ) \log (d+e x)}{2 \sqrt {-c^2} e}-\frac {b c \log \left (\frac {e \left (1-\sqrt {-\sqrt {-c^2}} x\right )}{\sqrt {-\sqrt {-c^2}} d+e}\right ) \log (d+e x)}{2 \sqrt {-c^2} e}-\frac {b c \log \left (-\frac {e \left (1+\sqrt {-\sqrt {-c^2}} x\right )}{\sqrt {-\sqrt {-c^2}} d-e}\right ) \log (d+e x)}{2 \sqrt {-c^2} e}+\frac {b c \operatorname {PolyLog}\left (2,\frac {\sqrt [4]{-c^2} (d+e x)}{\sqrt [4]{-c^2} d-e}\right )}{2 \sqrt {-c^2} e}-\frac {b c \operatorname {PolyLog}\left (2,\frac {\sqrt {-\sqrt {-c^2}} (d+e x)}{\sqrt {-\sqrt {-c^2}} d-e}\right )}{2 \sqrt {-c^2} e}+\frac {b c \operatorname {PolyLog}\left (2,\frac {\sqrt [4]{-c^2} (d+e x)}{\sqrt [4]{-c^2} d+e}\right )}{2 \sqrt {-c^2} e}-\frac {b c \operatorname {PolyLog}\left (2,\frac {\sqrt {-\sqrt {-c^2}} (d+e x)}{\sqrt {-\sqrt {-c^2}} d+e}\right )}{2 \sqrt {-c^2} e} \]

output
(a+b*arctan(c*x^2))*ln(e*x+d)/e+1/2*b*c*ln(e*(1-(-c^2)^(1/4)*x)/((-c^2)^(1 
/4)*d+e))*ln(e*x+d)/e/(-c^2)^(1/2)+1/2*b*c*ln(-e*(1+(-c^2)^(1/4)*x)/((-c^2 
)^(1/4)*d-e))*ln(e*x+d)/e/(-c^2)^(1/2)-1/2*b*c*ln(e*x+d)*ln(e*(1-x*(-(-c^2 
)^(1/2))^(1/2))/(e+d*(-(-c^2)^(1/2))^(1/2)))/e/(-c^2)^(1/2)-1/2*b*c*ln(e*x 
+d)*ln(-e*(1+x*(-(-c^2)^(1/2))^(1/2))/(-e+d*(-(-c^2)^(1/2))^(1/2)))/e/(-c^ 
2)^(1/2)+1/2*b*c*polylog(2,(-c^2)^(1/4)*(e*x+d)/((-c^2)^(1/4)*d-e))/e/(-c^ 
2)^(1/2)+1/2*b*c*polylog(2,(-c^2)^(1/4)*(e*x+d)/((-c^2)^(1/4)*d+e))/e/(-c^ 
2)^(1/2)-1/2*b*c*polylog(2,(e*x+d)*(-(-c^2)^(1/2))^(1/2)/(-e+d*(-(-c^2)^(1 
/2))^(1/2)))/e/(-c^2)^(1/2)-1/2*b*c*polylog(2,(e*x+d)*(-(-c^2)^(1/2))^(1/2 
)/(e+d*(-(-c^2)^(1/2))^(1/2)))/e/(-c^2)^(1/2)
 
3.1.23.2 Mathematica [C] (verified)

Result contains complex when optimal does not.

Time = 21.06 (sec) , antiderivative size = 326, normalized size of antiderivative = 0.65 \[ \int \frac {a+b \arctan \left (c x^2\right )}{d+e x} \, dx=\frac {a \log (d+e x)}{e}+\frac {b \left (2 \arctan \left (c x^2\right ) \log (d+e x)+i \left (\log (d+e x) \log \left (1-\frac {\sqrt {c} (d+e x)}{\sqrt {c} d-\sqrt [4]{-1} e}\right )+\log (d+e x) \log \left (1-\frac {\sqrt {c} (d+e x)}{\sqrt {c} d+\sqrt [4]{-1} e}\right )-\log (d+e x) \log \left (1-\frac {\sqrt {c} (d+e x)}{\sqrt {c} d-(-1)^{3/4} e}\right )-\log (d+e x) \log \left (1-\frac {\sqrt {c} (d+e x)}{\sqrt {c} d+(-1)^{3/4} e}\right )+\operatorname {PolyLog}\left (2,\frac {\sqrt {c} (d+e x)}{\sqrt {c} d-\sqrt [4]{-1} e}\right )+\operatorname {PolyLog}\left (2,\frac {\sqrt {c} (d+e x)}{\sqrt {c} d+\sqrt [4]{-1} e}\right )-\operatorname {PolyLog}\left (2,\frac {\sqrt {c} (d+e x)}{\sqrt {c} d-(-1)^{3/4} e}\right )-\operatorname {PolyLog}\left (2,\frac {\sqrt {c} (d+e x)}{\sqrt {c} d+(-1)^{3/4} e}\right )\right )\right )}{2 e} \]

input
Integrate[(a + b*ArcTan[c*x^2])/(d + e*x),x]
 
output
(a*Log[d + e*x])/e + (b*(2*ArcTan[c*x^2]*Log[d + e*x] + I*(Log[d + e*x]*Lo 
g[1 - (Sqrt[c]*(d + e*x))/(Sqrt[c]*d - (-1)^(1/4)*e)] + Log[d + e*x]*Log[1 
 - (Sqrt[c]*(d + e*x))/(Sqrt[c]*d + (-1)^(1/4)*e)] - Log[d + e*x]*Log[1 - 
(Sqrt[c]*(d + e*x))/(Sqrt[c]*d - (-1)^(3/4)*e)] - Log[d + e*x]*Log[1 - (Sq 
rt[c]*(d + e*x))/(Sqrt[c]*d + (-1)^(3/4)*e)] + PolyLog[2, (Sqrt[c]*(d + e* 
x))/(Sqrt[c]*d - (-1)^(1/4)*e)] + PolyLog[2, (Sqrt[c]*(d + e*x))/(Sqrt[c]* 
d + (-1)^(1/4)*e)] - PolyLog[2, (Sqrt[c]*(d + e*x))/(Sqrt[c]*d - (-1)^(3/4 
)*e)] - PolyLog[2, (Sqrt[c]*(d + e*x))/(Sqrt[c]*d + (-1)^(3/4)*e)])))/(2*e 
)
 
3.1.23.3 Rubi [A] (verified)

Time = 1.08 (sec) , antiderivative size = 469, normalized size of antiderivative = 0.94, number of steps used = 3, number of rules used = 3, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.167, Rules used = {5391, 2863, 2009}

Below are the steps used by Rubi to obtain the solution. The rule number used for the transformation is given above next to the arrow. The rules definitions used are listed below.

\(\displaystyle \int \frac {a+b \arctan \left (c x^2\right )}{d+e x} \, dx\)

\(\Big \downarrow \) 5391

\(\displaystyle \frac {\log (d+e x) \left (a+b \arctan \left (c x^2\right )\right )}{e}-\frac {2 b c \int \frac {x \log (d+e x)}{c^2 x^4+1}dx}{e}\)

\(\Big \downarrow \) 2863

\(\displaystyle \frac {\log (d+e x) \left (a+b \arctan \left (c x^2\right )\right )}{e}-\frac {2 b c \int \left (-\frac {x \log (d+e x) c^2}{2 \sqrt {-c^2} \left (\sqrt {-c^2}-c^2 x^2\right )}-\frac {x \log (d+e x) c^2}{2 \sqrt {-c^2} \left (c^2 x^2+\sqrt {-c^2}\right )}\right )dx}{e}\)

\(\Big \downarrow \) 2009

\(\displaystyle \frac {\log (d+e x) \left (a+b \arctan \left (c x^2\right )\right )}{e}-\frac {2 b c \left (-\frac {\operatorname {PolyLog}\left (2,\frac {\sqrt [4]{-c^2} (d+e x)}{\sqrt [4]{-c^2} d-e}\right )}{4 \sqrt {-c^2}}+\frac {\operatorname {PolyLog}\left (2,\frac {\sqrt {-\sqrt {-c^2}} (d+e x)}{\sqrt {-\sqrt {-c^2}} d-e}\right )}{4 \sqrt {-c^2}}-\frac {\operatorname {PolyLog}\left (2,\frac {\sqrt [4]{-c^2} (d+e x)}{\sqrt [4]{-c^2} d+e}\right )}{4 \sqrt {-c^2}}+\frac {\operatorname {PolyLog}\left (2,\frac {\sqrt {-\sqrt {-c^2}} (d+e x)}{\sqrt {-\sqrt {-c^2}} d+e}\right )}{4 \sqrt {-c^2}}-\frac {\log (d+e x) \log \left (\frac {e \left (1-\sqrt [4]{-c^2} x\right )}{\sqrt [4]{-c^2} d+e}\right )}{4 \sqrt {-c^2}}-\frac {\log (d+e x) \log \left (-\frac {e \left (\sqrt [4]{-c^2} x+1\right )}{\sqrt [4]{-c^2} d-e}\right )}{4 \sqrt {-c^2}}+\frac {\log (d+e x) \log \left (\frac {e \left (1-\sqrt {-\sqrt {-c^2}} x\right )}{\sqrt {-\sqrt {-c^2}} d+e}\right )}{4 \sqrt {-c^2}}+\frac {\log (d+e x) \log \left (-\frac {e \left (\sqrt {-\sqrt {-c^2}} x+1\right )}{\sqrt {-\sqrt {-c^2}} d-e}\right )}{4 \sqrt {-c^2}}\right )}{e}\)

input
Int[(a + b*ArcTan[c*x^2])/(d + e*x),x]
 
output
((a + b*ArcTan[c*x^2])*Log[d + e*x])/e - (2*b*c*(-1/4*(Log[(e*(1 - (-c^2)^ 
(1/4)*x))/((-c^2)^(1/4)*d + e)]*Log[d + e*x])/Sqrt[-c^2] - (Log[-((e*(1 + 
(-c^2)^(1/4)*x))/((-c^2)^(1/4)*d - e))]*Log[d + e*x])/(4*Sqrt[-c^2]) + (Lo 
g[(e*(1 - Sqrt[-Sqrt[-c^2]]*x))/(Sqrt[-Sqrt[-c^2]]*d + e)]*Log[d + e*x])/( 
4*Sqrt[-c^2]) + (Log[-((e*(1 + Sqrt[-Sqrt[-c^2]]*x))/(Sqrt[-Sqrt[-c^2]]*d 
- e))]*Log[d + e*x])/(4*Sqrt[-c^2]) - PolyLog[2, ((-c^2)^(1/4)*(d + e*x))/ 
((-c^2)^(1/4)*d - e)]/(4*Sqrt[-c^2]) + PolyLog[2, (Sqrt[-Sqrt[-c^2]]*(d + 
e*x))/(Sqrt[-Sqrt[-c^2]]*d - e)]/(4*Sqrt[-c^2]) - PolyLog[2, ((-c^2)^(1/4) 
*(d + e*x))/((-c^2)^(1/4)*d + e)]/(4*Sqrt[-c^2]) + PolyLog[2, (Sqrt[-Sqrt[ 
-c^2]]*(d + e*x))/(Sqrt[-Sqrt[-c^2]]*d + e)]/(4*Sqrt[-c^2])))/e
 

3.1.23.3.1 Defintions of rubi rules used

rule 2009
Int[u_, x_Symbol] :> Simp[IntSum[u, x], x] /; SumQ[u]
 

rule 2863
Int[((a_.) + Log[(c_.)*((d_) + (e_.)*(x_))^(n_.)]*(b_.))^(p_.)*((h_.)*(x_)) 
^(m_.)*((f_) + (g_.)*(x_)^(r_.))^(q_.), x_Symbol] :> Int[ExpandIntegrand[(a 
 + b*Log[c*(d + e*x)^n])^p, (h*x)^m*(f + g*x^r)^q, x], x] /; FreeQ[{a, b, c 
, d, e, f, g, h, m, n, p, q, r}, x] && IntegerQ[m] && IntegerQ[q]
 

rule 5391
Int[((a_.) + ArcTan[(c_.)*(x_)^(n_)]*(b_.))/((d_) + (e_.)*(x_)), x_Symbol] 
:> Simp[Log[d + e*x]*((a + b*ArcTan[c*x^n])/e), x] - Simp[b*c*(n/e)   Int[x 
^(n - 1)*(Log[d + e*x]/(1 + c^2*x^(2*n))), x], x] /; FreeQ[{a, b, c, d, e, 
n}, x] && IntegerQ[n]
 
3.1.23.4 Maple [C] (verified)

Result contains higher order function than in optimal. Order 9 vs. order 4.

Time = 1.27 (sec) , antiderivative size = 138, normalized size of antiderivative = 0.28

method result size
default \(\frac {a \ln \left (e x +d \right )}{e}+\frac {b \ln \left (e x +d \right ) \arctan \left (c \,x^{2}\right )}{e}-\frac {b e \left (\munderset {\textit {\_R1} =\operatorname {RootOf}\left (c^{2} \textit {\_Z}^{4}-4 c^{2} d \,\textit {\_Z}^{3}+6 c^{2} d^{2} \textit {\_Z}^{2}-4 \textit {\_Z} \,c^{2} d^{3}+c^{2} d^{4}+e^{4}\right )}{\sum }\frac {\ln \left (e x +d \right ) \ln \left (\frac {-e x +\textit {\_R1} -d}{\textit {\_R1}}\right )+\operatorname {dilog}\left (\frac {-e x +\textit {\_R1} -d}{\textit {\_R1}}\right )}{\textit {\_R1}^{2}-2 \textit {\_R1} d +d^{2}}\right )}{2 c}\) \(138\)
parts \(\frac {a \ln \left (e x +d \right )}{e}+\frac {b \ln \left (e x +d \right ) \arctan \left (c \,x^{2}\right )}{e}-\frac {b e \left (\munderset {\textit {\_R1} =\operatorname {RootOf}\left (c^{2} \textit {\_Z}^{4}-4 c^{2} d \,\textit {\_Z}^{3}+6 c^{2} d^{2} \textit {\_Z}^{2}-4 \textit {\_Z} \,c^{2} d^{3}+c^{2} d^{4}+e^{4}\right )}{\sum }\frac {\ln \left (e x +d \right ) \ln \left (\frac {-e x +\textit {\_R1} -d}{\textit {\_R1}}\right )+\operatorname {dilog}\left (\frac {-e x +\textit {\_R1} -d}{\textit {\_R1}}\right )}{\textit {\_R1}^{2}-2 \textit {\_R1} d +d^{2}}\right )}{2 c}\) \(138\)
risch \(\frac {i b \ln \left (e x +d \right ) \ln \left (-i c \,x^{2}+1\right )}{2 e}-\frac {i b \ln \left (e x +d \right ) \ln \left (\frac {e \sqrt {-i c}-c \left (e x +d \right )+c d}{e \sqrt {-i c}+c d}\right )}{2 e}-\frac {i b \ln \left (e x +d \right ) \ln \left (\frac {e \sqrt {-i c}+c \left (e x +d \right )-c d}{e \sqrt {-i c}-c d}\right )}{2 e}-\frac {i b \operatorname {dilog}\left (\frac {e \sqrt {-i c}-c \left (e x +d \right )+c d}{e \sqrt {-i c}+c d}\right )}{2 e}-\frac {i b \operatorname {dilog}\left (\frac {e \sqrt {-i c}+c \left (e x +d \right )-c d}{e \sqrt {-i c}-c d}\right )}{2 e}+\frac {a \ln \left (e x +d \right )}{e}-\frac {i b \ln \left (e x +d \right ) \ln \left (i c \,x^{2}+1\right )}{2 e}+\frac {i b \ln \left (e x +d \right ) \ln \left (\frac {e \sqrt {i c}-c \left (e x +d \right )+c d}{e \sqrt {i c}+c d}\right )}{2 e}+\frac {i b \ln \left (e x +d \right ) \ln \left (\frac {e \sqrt {i c}+c \left (e x +d \right )-c d}{e \sqrt {i c}-c d}\right )}{2 e}+\frac {i b \operatorname {dilog}\left (\frac {e \sqrt {i c}-c \left (e x +d \right )+c d}{e \sqrt {i c}+c d}\right )}{2 e}+\frac {i b \operatorname {dilog}\left (\frac {e \sqrt {i c}+c \left (e x +d \right )-c d}{e \sqrt {i c}-c d}\right )}{2 e}\) \(431\)

input
int((a+b*arctan(c*x^2))/(e*x+d),x,method=_RETURNVERBOSE)
 
output
a*ln(e*x+d)/e+b*ln(e*x+d)/e*arctan(c*x^2)-1/2*b/c*e*sum(1/(_R1^2-2*_R1*d+d 
^2)*(ln(e*x+d)*ln((-e*x+_R1-d)/_R1)+dilog((-e*x+_R1-d)/_R1)),_R1=RootOf(_Z 
^4*c^2-4*_Z^3*c^2*d+6*_Z^2*c^2*d^2-4*_Z*c^2*d^3+c^2*d^4+e^4))
 
3.1.23.5 Fricas [F]

\[ \int \frac {a+b \arctan \left (c x^2\right )}{d+e x} \, dx=\int { \frac {b \arctan \left (c x^{2}\right ) + a}{e x + d} \,d x } \]

input
integrate((a+b*arctan(c*x^2))/(e*x+d),x, algorithm="fricas")
 
output
integral((b*arctan(c*x^2) + a)/(e*x + d), x)
 
3.1.23.6 Sympy [F(-1)]

Timed out. \[ \int \frac {a+b \arctan \left (c x^2\right )}{d+e x} \, dx=\text {Timed out} \]

input
integrate((a+b*atan(c*x**2))/(e*x+d),x)
 
output
Timed out
 
3.1.23.7 Maxima [F]

\[ \int \frac {a+b \arctan \left (c x^2\right )}{d+e x} \, dx=\int { \frac {b \arctan \left (c x^{2}\right ) + a}{e x + d} \,d x } \]

input
integrate((a+b*arctan(c*x^2))/(e*x+d),x, algorithm="maxima")
 
output
2*b*integrate(1/2*arctan(c*x^2)/(e*x + d), x) + a*log(e*x + d)/e
 
3.1.23.8 Giac [F]

\[ \int \frac {a+b \arctan \left (c x^2\right )}{d+e x} \, dx=\int { \frac {b \arctan \left (c x^{2}\right ) + a}{e x + d} \,d x } \]

input
integrate((a+b*arctan(c*x^2))/(e*x+d),x, algorithm="giac")
 
output
integrate((b*arctan(c*x^2) + a)/(e*x + d), x)
 
3.1.23.9 Mupad [F(-1)]

Timed out. \[ \int \frac {a+b \arctan \left (c x^2\right )}{d+e x} \, dx=\int \frac {a+b\,\mathrm {atan}\left (c\,x^2\right )}{d+e\,x} \,d x \]

input
int((a + b*atan(c*x^2))/(d + e*x),x)
 
output
int((a + b*atan(c*x^2))/(d + e*x), x)